package itheima.zuoye.Test5;

import java.util.HashSet;

public class test {
    public static void main(String[] args) {
        HashSet<Seyou> set = new HashSet<>();
        Seyou s1 = new Seyou("赵丽颖", 18);
        Seyou s2 = new Seyou("范冰冰", 20);
        Seyou s3 = new Seyou("杨幂", 19);
        Seyou s4 = new Seyou("杨幂", 19);
        set.add(s1);
        set.add(s2);
        set.add(s3);
        set.add(s4);
        set.forEach(System.out::println);


    }
}
